#ifndef PLAYER_H
#define PLAYER_H

#include "gameobject.h"

class Player : public GameObject
{

public:
    float mMoveSpeed;
    double gravity;
    double vy ;
    bool isJumping;
    Player();

    virtual void Move() =0;
    virtual void jump();

    virtual void updatePosition()=0;
    virtual void boundaryJudge();//边界判断
    virtual void detectCollisions()=0;//检测下部分碰撞
    virtual void downCollisions()=0;//检测上部分碰撞并反弹
    virtual void diamondCollisions()=0;//钻石碰撞
    virtual void watergreenJudge()=0;//绿水判断
    virtual void water()=0;
    virtual void down();
    virtual void changePixmap()=0;//换图片

    virtual ~Player();

protected:




};

#endif // PLAYER_H
